//
//  Extension+UIImageView.swift
//  CZBKWB31
//
//  Created by Linkon Y on 16/8/9.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit
import SDWebImage
extension UIImageView{
    //遍历构造韩式
    convenience init(imageName: String) {
        self.init(image: UIImage(named: imageName))
    }
    //对SDWbImage封装
    func  hm_setImageWithString(imageName:String? , placeholderImageName: String){
    
        self.sd_setImageWithURL(NSURL(string:imageName ?? ""), placeholderImage: UIImage(named:placeholderImageName))
    
    }
}

 